package com.kalix.jyksh.record.dao;

import com.kalix.framework.core.impl.dao.GenericDao;
import com.kalix.ksh.record.api.dao.IEquipmentRecordBeanDao;
import com.kalix.ksh.record.api.dao.IPremisesRecordBeanDao;
import com.kalix.ksh.record.entities.PremisesRecordBean;

import javax.persistence.EntityManager;
import javax.persistence.PersistenceContext;
import java.util.UUID;

/**
 * Created by Wanghw on 2018/10/12.
 * 设备运行状态数据
 */
public class PremisesRecordBeanDaoImpl extends GenericDao<PremisesRecordBean, Long> implements IPremisesRecordBeanDao {
    private String uuid;
    public PremisesRecordBeanDaoImpl() {

        uuid = UUID.randomUUID().toString();
    }

    @Override
    @PersistenceContext(unitName = "record-unit")
    public void setEntityManager(EntityManager em) {
        super.setEntityManager(em);
    }

}
